// name 定义必须和界面上name保持一致
// import store from '@/views/store/index'

let asyncRouterMap = [
    //系统管理
    {
        name: 'sysmenu',
        path: '/sysmenu',
        component: () =>
            import('@/views/system/menu/index'),
        meta: { noCache: true, noLog: true }
    },  {
        name: 'editmenu',
        path: '/editmenu',
        component: () =>
            import('@/views/system/menu/edit'),
        meta: { noCache: true, noLog: true }
    },  {
        name: 'sysbtn',
        path: '/sysbtn',
        component: () =>
            import('@/views/system/btn/index'),
        meta: { noCache: true, noLog: true }
    },  {
        name: 'editbtn',
        path: '/editbtn',
        component: () =>
            import('@/views/system/btn/edit'),
        meta: { noCache: true, noLog: true }
    },  {
        name: 'sysrole',
        path: '/sysrole',
        component: () =>
            import('@/views/system/role/index'),
        meta: { noCache: true, noLog: true }
    },  {
        name: 'editrole',
        path: '/editrole',
        component: () =>
            import('@/views/system/role/edit'),
        meta: { noCache: true, noLog: true }
    },   {
        name: 'roletomenu',
        path: '/roletomenu',
        component: () =>
            import('@/views/system/role/roletomenu'),
        meta: { noCache: true, noLog: true }
    },  {
        name: 'sysmanage',
        path: '/sysmanage',
        component: () =>
            import('@/views/system/manage/index'),
        meta: { noCache: true, noLog: true }
    },  {
        name: 'editmanage',
        path: '/editmanage',
        component: () =>
            import('@/views/system/manage/edit'),
        meta: { noCache: true, noLog: true }
    }, {
        name: 'torole',
        path: '/torole',
        component: () =>
            import('@/views/system/manage/torole'),
        meta: { noCache: true, noLog: true }
    }, 



    // 测试项目
    {
        name: 'welcome',
        path: '/welcome',
        component: () =>
            import('@/views/test/welcome'),
        meta: { noCache: true, noLog: true }
    }, {
        name: 'testtable',
        path: '/table',
        component: () =>
            import('@/views/test/table'),
        meta: { noCache: true }
    }, {
        name: 'treetable',
        path: '/treeTable',
        component: () =>
            import('@/views/test/treeTable'),
        meta: { noCache: true }
    }, {
        name: 'testtree',
        path: '/tree',
        component: () =>
            import('@/views/test/tree'),
        meta: { noCache: true }
    }, {
        name: 'testformtable',
        path: '/formtable',
        component: () =>
            import('@/views/test/formtable'),
        meta: { noCache: true }
    }, {
        name: 'tableUpdate',
        path: '/tableUpdate',
        component: () =>
            import('@/views/test/tableUpdate'),
        meta: { noCache: true }
    }, {
        name: 'testform',
        path: '/form',
        component: () =>
            import('@/views/test/form'),
        meta: { noCache: true, noRoot: true }
    },
]


export default asyncRouterMap